package com.zsh.boot.controller;

import com.zsh.boot.bean.Car;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zsh
 * @Description
 * @create 2022-02-13 10:06
 */

@Slf4j
@RestController
public class HelloController {

    @Resource
    private Car car;

    @RequestMapping("/car")
    public Car car(){
        return car;
    }

    @RequestMapping("/hello3")
    public String handle01(){
        log.info("请求进来了！");
        return "Hello, Spring Boot 2! 你好";
    }



}
